﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;
using MvcEngine.Core.Base;

namespace MvcEngine.Core.Account
{
    public class User : Entity
    {
        public Guid Id { get; set; }

        public Guid SiteId { get; set; }

        public string Email { get; set; }

        public string Name { get; set; }

        public bool IsHost { get; set; }

        public string Password { get; set; }

        public string PasswordSalt { get; set; }

        public bool IsApproved { get; set; }

        public bool IsLockedOut { get; set; }

        public int FailedPasswordAttemptCount { get; set; }

        public int FailedPasswordAnswerAttemptCount { get; set; }

        public Guid? CreateGuid { get; set; }

        public Guid? RestoreGuid { get; set; }

        public string FirstName { get; set; }

        public string LastName {get; set;}

        public bool Male { get; set; }

        public DateTime BirthDay { get; set; }

        public Guid? CreatedBy { get; set; }

        public DateTime CreatedDate { get; set; }

        public Guid? ModifiedBy { get; set; }

        public DateTime ModifiedDate { get; set; }

        public override string Xml
        {
            get;
            set;
        }
    }
}
